package com.retoc.oawx.mapper;

import com.retoc.oawx.domain.Ot;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

/**
* @author retoc
* @description 针对表【tb_ot】的数据库操作Mapper
* @createDate 2022-06-27 19:40:02
* @Entity com.retoc.oawx.domain.Ot
*/
@Mapper
public interface OtMapper extends BaseMapper<Ot> {

    int deleteByid(Integer id);

    HashMap selectOtById(Integer id);

    String selectInstanceIdbyId(int id);

    int setInstanceId(HashMap param);

    int createEvection(Ot ot);

    void approveOtByInstanceId(String instanceId);

    Ot selectOtByInstanceId(String instanceId);

    ArrayList<HashMap> selectOtListByCreator(HashMap map);

    ArrayList<HashMap> selectOldOtListByCreator(HashMap map);

    int updateOt(Ot ot);

    Ot selectOtByid(int id);
}




